/**
 * AssessmentInController.java
 * Version 1.0.0
 * Created on 2019年1月29日
 *
 */
package com.yincheng.oes.business.assessment.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.yincheng.oes.business.assessment.service.AssessmentService;
import com.yincheng.oes.business.exam.judgepaper.entity.PaperStudentResult;

/**
 * @author yangsy
 * @version 1.0.0
 * @since
 * 创建时间：2019年1月29日
 * <p>
 * 功能描述：评估试卷（内部学生）
 * <p>
 * 邮箱地址：446948434@qq.com
 */
@Controller
@RequestMapping("/internal/assessment")
public class AssessmentInController {

    @Autowired
    private AssessmentService assessmentService;

    @RequestMapping(value = "/draftPage.html", method = RequestMethod.GET)
    public ModelAndView draftPage(ModelAndView view, String paperId) {
        // setView(view);

        PaperStudentResult form = assessmentService.getNewPaperByPaperIdInternal(paperId);
        view.addObject("form", form);
        view.setViewName("/business/mygrade/answer-edit");
        return view;
    }
}
